﻿@model PNProject.Models.CommentModels 
@{
    var comments = Model.Comments;
}
@if (comments != null && comments.Any())
{
                        
    <p>Hiển thị @Model.ShowRecord của @Model.TotalComment bình luận</p>
                           
    foreach (var comment in comments)
    {
    <div class="boxdanhgia">
        <div class="tentv">
            <ul>
                <li>
                    @if (string.IsNullOrEmpty(comment.Username))
                    {
                        <p>Guess</p>
                    }
                    else
                    {
                        <p>comment.Username</p>
                    }

                    @if (@comment.SentDate != null && @comment.SentDate.HasValue)
                    {
                        <span>
                            @comment.SentDate.Value.ToString("g")
                        </span>
                    }

                </li>
            </ul>
        </div>
        <div class="danhgia-y">
            @if (!string.IsNullOrEmpty(comment.Message))
            {
                <span>
                    @Html.Raw(comment.Message)

                </span>
            }

        </div>
    </div>
    }



}


